/**
 * 
 */
package com.shengruan.admin.action;

import com.shengruan.admin.util.MessageUtil;
import com.shengruan.common.BaseAction;

public class SendSmsAction extends BaseAction{

	public void sendSms() throws Exception
	{
		String telephone = this.input("telephone");
		String content = this.input("content");
		boolean result = MessageUtil.sendSMS(telephone, content);
		if(result)
		{
			this.print("success");
		}
		else
		{
			this.print("error");
		}
	}
}
